package com.ruoyi.examination.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.examination.mapper.PaperConfigGroupMapper;
import com.ruoyi.examination.domain.PaperConfigGroup;
import com.ruoyi.examination.service.IPaperConfigGroupService;

/**
 * 题组与试卷设置Service业务层处理
 * 
 * @author hcc
 * @date 2025-10-21
 */
@Service
public class PaperConfigGroupServiceImpl implements IPaperConfigGroupService 
{
    @Autowired
    private PaperConfigGroupMapper paperConfigGroupMapper;

    /**
     * 查询题组与试卷设置
     * 
     * @param paperConfigGroupId 题组与试卷设置主键
     * @return 题组与试卷设置
     */
    @Override
    public PaperConfigGroup selectPaperConfigGroupByPaperConfigGroupId(String paperConfigGroupId)
    {
        return paperConfigGroupMapper.selectPaperConfigGroupByPaperConfigGroupId(paperConfigGroupId);
    }

    /**
     * 查询题组与试卷设置列表
     * 
     * @param paperConfigGroup 题组与试卷设置
     * @return 题组与试卷设置
     */
    @Override
    public List<PaperConfigGroup> selectPaperConfigGroupList(PaperConfigGroup paperConfigGroup)
    {
        return paperConfigGroupMapper.selectPaperConfigGroupList(paperConfigGroup);
    }

    /**
     * 新增题组与试卷设置
     * 
     * @param paperConfigGroup 题组与试卷设置
     * @return 结果
     */
    @Override
    public int insertPaperConfigGroup(PaperConfigGroup paperConfigGroup)
    {
        return paperConfigGroupMapper.insertPaperConfigGroup(paperConfigGroup);
    }

    /**
     * 修改题组与试卷设置
     * 
     * @param paperConfigGroup 题组与试卷设置
     * @return 结果
     */
    @Override
    public int updatePaperConfigGroup(PaperConfigGroup paperConfigGroup)
    {
        return paperConfigGroupMapper.updatePaperConfigGroup(paperConfigGroup);
    }

    /**
     * 批量删除题组与试卷设置
     * 
     * @param paperConfigGroupIds 需要删除的题组与试卷设置主键
     * @return 结果
     */
    @Override
    public int deletePaperConfigGroupByPaperConfigGroupIds(String[] paperConfigGroupIds)
    {
        return paperConfigGroupMapper.deletePaperConfigGroupByPaperConfigGroupIds(paperConfigGroupIds);
    }

    /**
     * 删除题组与试卷设置信息
     * 
     * @param paperConfigGroupId 题组与试卷设置主键
     * @return 结果
     */
    @Override
    public int deletePaperConfigGroupByPaperConfigGroupId(String paperConfigGroupId)
    {
        return paperConfigGroupMapper.deletePaperConfigGroupByPaperConfigGroupId(paperConfigGroupId);
    }
}
